/**************************************************
 * Filename: ExcelDesc.java
 * Version: v1.0
 * CreatedDate: 2011-4-30
 * Copyright (C) 2011 By cafebabe.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 *
 * If you would like to negotiate alternate licensing terms, you may do
 * so by contacting the author: talentyao@foxmail.com
 ***************************************************/

package tk.mystudio.idc.excel;

import java.util.List;

/**
 * EXCEL描述类,用来存放Excel中sheet的名称及列名与字段名的对应的类
 * 
 * @author cafebabe
 * @since 2011-4-30
 * @version 1.0
 */
public class ExcelDesc {
	static class Title {
		private String aName;
		private String fName;
		private Header.Format format;
		private String pattern; 
		
		/**
		 * 构造函数 
		 */		
		public Title() {
			super();
		}

		/**
		 * 构造函数
		 * @param cName
		 * @param fName 
		 */		
		public Title(String cName, String fName) {
			super();
			this.aName = cName;
			this.fName = fName;
		}

		/**
		 * @return Returns the cName.
		 */
		public String getaName() {
			return aName;
		}

		/**
		 * @param cName The cName to set.
		 */
		public void setaName(String aName) {
			this.aName = aName;
		}

		/**
		 * @return Returns the fName.
		 */
		public String getfName() {
			return fName;
		}

		/**
		 * @param fName The fName to set.
		 */
		public void setfName(String fName) {
			this.fName = fName;
		}

		/**
		 * @return Returns the format.
		 */
		public Header.Format getFormat() {
			return format;
		}

		/**
		 * @param format The format to set.
		 */
		public void setFormat(Header.Format format) {
			this.format = format;
		}

		/**
		 * @return Returns the pattern.
		 */
		public String getPattern() {
			return pattern;
		}

		/**
		 * @param pattern The pattern to set.
		 */
		public void setPattern(String pattern) {
			this.pattern = pattern;
		}

	}

	private String sheet;
	private List<Title> titles;

	/**
	 * @return Returns the sheet.
	 */
	public String getSheet() {
		return sheet;
	}
	/**
	 * @param sheet The sheet to set.
	 */
	public void setSheet(String sheet) {
		this.sheet = sheet;
	}
	/**
	 * @return Returns the titles.
	 */
	public List<Title> getTitles() {
		return titles;
	}
	/**
	 * @param titles The titles to set.
	 */
	public void setTitles(List<Title> titles) {
		this.titles = titles;
	}
	
}

